package com.edu.app.mapper.core.popup;

import com.edu.app.bean.core.popup.RolesPop;
import com.edu.app.bean.virtualbean.NameValueItems;
import com.edu.app.util.AppBaseMapper;


import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface RolesPopMapper extends AppBaseMapper<RolesPop> {
    @Select("SELECT id, role_name, role_description FROM S_ROLE")
    @Results({
            @Result(property = "id",  column = "id"),
            @Result(property = "name", column = "role_name"),
            @Result(property = "value", column = "role_description")
    })
    List<NameValueItems> getRolesPop();
}
